package com.lzy.cloud.payment.remote;

import com.lzy.cloud.payment.remote.request.BaseCouponRequest;
import com.lzy.framework.core.output.Result;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestHeader;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@FeignClient(name = "lzy-cloud-user")
public interface BaseApi {


    /**
     * 判断移动端会员是否登录
     *
     * @param token
     * @return
     */
    @RequestMapping(value = "/base/member/token" ,method = RequestMethod.GET)
    Result isMemberLogin(@RequestHeader("token") String token);

    /**
     * 更新卡券
     * @param request
     * @return
     */
    @RequestMapping(value = "/update/by/primary/key", method = RequestMethod.POST)
    Result updateByKey(BaseCouponRequest request);

}
